package com.xr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @RestController类里所有方法都返回JSON数据
 */
@RestController
public class HelloController {


    @RequestMapping("hello")
    public String hello(){
        return "hello world";
    }

}
